package com.itheima.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.itheima.bean.Orders;
import com.itheima.common.OrderStatus;
import com.itheima.common.PageParam;

public interface OrderService {

    /**
     * 添加订单
     * @param orders
     * @return
     */
    int add(Orders orders);

    /**
     * 订单分页查询
     * @param pageParam
     * @return
     */
    IPage<Orders> findPage(PageParam pageParam);

    /**
     * 修改状态为已派送
     * @param orders
     * @return
     */
    int updateStatus(OrderStatus orders);

    /**
     * 用户订单分页查询
     *  @Description
     *   @param
     *   @Return
     */
    IPage<Orders> userPage(PageParam pageParam);


    IPage<Orders> findHistoryOrder(Integer page1, Integer pageSize);
}
